import request from '@/utils/request'

// 查询本周日程列表
export function listOaWeekSchedule(query) {
  return request({
    url: '/weekSchedule/oaWeekSchedule/list',
    method: 'get',
    params: query
  })
}

// 查询本周日程详细
export function getOaWeekSchedule(id) {
  return request({
    url: '/weekSchedule/oaWeekSchedule/' + id,
    method: 'get'
  })
}

// 保存本周日程
export function saveOaWeekSchedule(data) {
  return request({
    url: '/weekSchedule/oaWeekSchedule/save',
    method: 'post',
    data: data
  })
}

// 删除本周日程
export function delOaWeekSchedule(id) {
  return request({
    url: '/weekSchedule/oaWeekSchedule/' + id,
    method: 'delete'
  })
}

// 导出本周日程
export function exportOaWeekSchedule(query) {
  return request({
    url: '/weekSchedule/oaWeekSchedule/export',
    method: 'get',
    params: query
  })
}
